//
//  IFlyAudioRecordDelegate.h
//  AIKITDemo
//
//  Created by xyzhang on 2023/3/13.
//

#import <Foundation/Foundation.h>

@class IFlyAudioRecorder;

@protocol IFlyAudioRecorderDelegate <NSObject>

/// 回调音频数据
/// @param buffer 音频数据
/// @param size 表示音频的长度
- (void)onIFlyRecorderBuffer:(const void *)buffer bufferSize:(int)size;

/// 回调音频的错误码
/// @param recorder 录音器
/// @param errorCode 错误码
- (void)onIFlyRecorderError:(IFlyAudioRecorder *)recorder errorCode:(NSUInteger)errorCode;

@optional

/// 回调录音音量
/// @param volume 音量值
- (void)onIFlyRecorderVolumeChanged:(int)volume;

@end
